<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>内容页</title>
		<script type="text/javascript">
		var getCartDataUrl = "<?php echo U('getCartData');?>";
		var addCartUrl = "<?php echo U('Cart/add');?>";
		var params = '<?php echo _default($hd['get']['param'],$getParam);?>';
		var delCartUrl = "<?php echo U('Cart/del');?>";
		</script>
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<link rel="stylesheet" type="text/css" href="http://localhost/vshop/Template/default/css/public.css"/>
		<script src="http://localhost/vshop/Template/default/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="http://localhost/vshop/Template/default/js/public.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="http://localhost/vshop/Template/default/css/content.css"/>
		<script src="http://localhost/vshop/Template/default/js/content.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!-- 头部开始 -->
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!-- 头部开始 -->
		<div class="haad">
			<div class="haadTop">
				    <?php if(session('uid') && session('uname')){ ?>
					<div class="haadTopL">
						您好，<a href="<?php echo U('Member/index');?>" style="color: #A10000;"><?php echo $hd['session']['uname'];?></a>&nbsp;
						<span>欢迎光临凡客诚品！</span>&nbsp;
						<a href="<?php echo U('User/out');?>" style="color: #A10000;">退出登陆</a>
					</div>
				<?php }else{ ?>
					<div class="haadTopL">
						您好，<span>欢迎光临凡客诚品！</span>&nbsp;
						<span>
							<a href="<?php echo U('User/login');?>">登陆</a>&nbsp;|&nbsp;<a href="<?php echo U('User/register');?>">注册</a>
						</span>
					</div>
				<?php } ?>
				<div class="haadTopR">
					<ul>
						<li class="topMenuBox">
							<a href="<?php echo U('Member/index');?>" class="topMenu">我的凡客</a>
							<ul>
								<li><a href="<?php echo U('Order/index');?>">我的订单</a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<!--logo和搜索开始-->
		<div class="logoSearch">
			<div class="logoL">
				<a href="<?php echo U('Index/index');?>"></a>
			</div>
			<div class="searchR">
				<div class="searchFormBox">
					<form action="" method="post">
						<input type="text" id="keyword" value="搜“帆布鞋”，体验与众不同" /><input type="submit" id="searchSub" value="" />
					</form>
				</div>
				<div class="cartBox">
					<p><a href="#">购物车(<span>0</span>)</a></p>
					<div class="BuycarTab">
						<div id="noGoodsMsg" style="display: none;">您的购物车中没有商品</div>
						<div class="havepru">
							<h2>最近加入的商品：</h2>
							<ul>
								
							</ul>
							<div class="ShopCarPageLine"></div>
							<div class="ShopCarPage">
								<div>共计(未计算促销折扣)<span>￥0</span></div>
								<strong><a href="<?php echo U('Cart/index');?>">查看购物车(<span>0</span>件)</a></strong>
							</div>
						</div>
					</div>
				</div>
				<div class="hotWord">
					<p>热门搜索：<a href="#">吉国武</a>&nbsp;<a href="#">吉国武</a></p>
				</div>
			</div>
		</div>
		<!--logo和搜索结束-->
		<!--顶部导航开始-->
		<div class="navBox">
			<div class="allProduct">
				<span class="navCon notIndex">全部商品分类<em></em></span>
				<div class="categoryList">
					<div class="categpost">
						<?php foreach ($topCate as $tk=>$tv){?>
							<dl>
								<h3><a href="<?php echo U('List/index',array('cid'=>$tv['cid']));?>"><?php echo $tv['cname'];?></a></h3>
								<?php foreach ($cateData as $ck=>$cv){?>
									    <?php if($tv['cid']==$cv['pid']){ ?>
										<dt><a href="<?php echo U('List/index',array('cid'=>$cv['cid']));?>"><?php echo $cv['cname'];?></a></dt>
										<dd>
											<?php foreach ($cateData as $sk=>$sv){?>
												    <?php if($cv['cid']==$sv['pid']){ ?>
													<a href="<?php echo U('List/index',array('cid'=>$sv['cid']));?>"><?php echo $sv['cname'];?></a>
												<?php } ?>
											<?php }?>
										</dd>
									<?php } ?>
								<?php }?>
							</dl>
						<?php }?>
					</div>
				</div>
			</div>
			<div class="navListBox">
				<ul>
					<?php foreach ($topCate as $k=>$v){?>
						<li><a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a></li>
					<?php }?>
				</ul>
			</div>
		</div>
		<!--顶部导航结束-->
		<!-- 头部结束 -->
		<!-- 头部结束 -->
		<!--添加购物车成功弹窗start-->
		<div id="carZheZhao"></div>
		<div id="carbox" class="CarBox_Main">
		    <div style="display: none;" id="carboxloading"><img src="//i.vanclimg.com/logo/loading.gif" alt="loading"></div>
		    <div style="">
		        <h2 class="CarBox_Title"><span>商品成功放入购物车</span><span class="close fr"></span></h2>
		        <div class="CarBox_Content">
		            <div class="CarBox_bg"></div>
		            <div class="CarBox_NumPrice">
		                <span class="line01 fl"></span>
		                <div class="fl" style="padding-top: 14px;">
		                    <p><span>共有</span><span id="shopcarcount">1</span><span>件商品</span></p>
		                    <p><span class="CarBox_TotialPrice"><span>总计</span><span id="shopcarprice">￥129.00</span></span></p>
		                </div>
		            </div>
		            <div class="CarBox_Btn">
		                <div class="CarBox_goCar"><a class="track" href="<?php echo U('Cart/index');?>" target="_parent">去购物车&gt;&gt;</a></div>
		                <div id="continueshop" class="CarBox_nowCheckout CarBox_nowContinueBuy jxgwbtn"><a href="javascript:;" class="track" name="item-continueshop">&lt;&lt;继续购物</a></div>
		            </div>
		        </div>
		        <!-- <div style="display: block;" class="CarBox_ProductList">
		        	<h2><a href="" class="track" name="item-shopping-pap" target="_blank">您可能喜欢的商品&gt;&gt;</a>购买过该商品的人还购买过</h2>
		        	<ul class="CarBox_ProductListTab">
		        		
		        		<li>
		        			<div class="ygmPic">
		        				<a class="track" name="item-shopping-pap" href="" target="_blank" rel="r-item-cat-1-6373514">
		        					<img src="http://images.vancl.com/product/1/7/2/1727055/small/1727055-1j201403131009187390.jpg" />
		        				</a>
		        			</div>
		        			<a class="ygmName track" name="item-shopping-pap" href="" target="_blank" rel="r-item-cat-1-6373514">升级版经典POLO衫（男款） 湖蓝色</a>
		        			<p class="ygmPrice"><span>售价￥79.00</span></p>
		        		</li>
		        		
		        		<li>
		        			<div class="ygmPic">
		        				<a class="track" name="item-shopping-pap" href="" target="_blank" rel="r-item-cat-2-6373514">
		        					<img src="http://images.vancl.com/product/1/7/2/1727054/small/1727054-1j201403131008535522.jpg" />
		        				</a>
		        			</div>
		        			<a class="ygmName track" name="item-shopping-pap" href="" target="_blank" rel="r-item-cat-2-6373514">升级版经典POLO衫（男款） 黑色</a>
		        			<p class="ygmPrice"><span>售价￥79.00</span></p>
		        		</li>
		        	</ul>
		        </div> -->
		    </div>
		</div>
		<!--添加购物车成功弹窗end-->
		<div class="main">
			<!--面包屑导航start-->
			<div class="breadNav">
				<span>当前位置：</span>
				<a href="<?php echo U('Index/index');?>">首页</a><span>&gt;</span>
				<?php foreach ($fatherCateArr as $fck=>$fcv){?>
					<a href="<?php echo U('List/index',array('cid'=>$fcv['cid']));?>"><?php echo $fcv['cname'];?></a><span>&gt;</span>
				<?php }?>
				<span><?php echo $goodsData['gname'];?></span>
			</div>
			<!--面包屑导航end-->
			<div class="productTitle">
				<h2><?php echo $goodsData['gname'];?></h2>
				<!-- <ul>
					<li><a href="#">产品描述</a>|</li>
					<li><a href="#">评论</a>|</li>
					<li><a href="#">提问</a></li>
				</ul> -->
			</div>
			<div class="danpin_colleft">
				<div class="danpinLeft">
					<div class="smallimg">
						<ul id="imageMenu">
							<?php foreach ($goodsData['smallimg'] as $sik=>$siv){?>
								<li id="onclickImg">
									<span style="background-image: url(http://localhost/vshop/<?php echo $siv;?>);"></span>
								</li>
							<?php }?>
						</ul>
					</div>
				</div>
				
				<div id="danpinCenter">
					<div id="mediumImg" style="background-image: url(Upload/44321442907227_medium.jpg);">
						<div id="box"></div>
						<div id="cover"></div>
					</div>
				</div>
				<div id="right">
					<img id="img" src="Upload/44321442907227.jpg" />
				</div>
			</div>
			<div class="danpinRight">
				<div class="danpinFixedRightContent">
					<div id="pricearea">
						<div class="cuxiaoPriec">
							<span class="tehuiMoney">
								<span>售价：</span>
								<span>￥<strong><?php echo $goodsData['gshopprice'];?></strong></span>
							</span>
						</div>
					</div>
					<div class="selectArea">
						<div class="selColorArea">
							<?php foreach ($attrSel as $ask=>$asv){?>
								<?php
								$temp = $param;
								$temp[$asv['atnum']] = $asv['value'][0]['gaid'];
								?>
								<div class="selSizeArea">
									<div class="attrName"><p><?php echo $asv['name'];?>：</p></div>
									<div class="selSize">
										<ul>
											<?php foreach ($asv['value'] as $sask=>$sasv){?>
												<?php
												$temp[$asv['atnum']] = $sasv['gaid'];
												?>
												    <?php if($param[$asv['atnum']]==$sasv['gaid']){ ?>
													<li class="onclickSelSize">
														<a href="<?php echo U('index',array('gid'=>$_GET['gid'],'param'=>implode('_',$temp)));?>"><p><?php echo $sasv['gavalue'];?></p><span class="attrSel"></span></a>
													</li>
												<?php }else{ ?>
													<li>
														<a href="<?php echo U('index',array('gid'=>$_GET['gid'],'param'=>implode('_',$temp)));?>"><p><?php echo $sasv['gavalue'];?></p></a>
													</li>
												<?php } ?>
											<?php }?>
											<!-- <li>
												<a href="#"><p>红色</p></a>
											</li>
											<li class="noSel">
												<a href="#"><p>藏蓝色</p></a>
											</li> -->
										</ul>
									</div>
								</div>
							<?php }?>
							<div class="goodsNum">
								<div class="danpinColorTitle"><p>数量：</p></div>
								<div class="danpinNumSelect">
									    <?php if(!empty($attrGoods)){ ?>
										<input type="hidden" name="gid" id="gid" value="<?php echo $goodsData['gid'];?>" />
										<select name="shopNum" id="shopNum">
											<?php for($i=1;$i<=$attrGoods['glinventory'];$i++){ ?>
											<option value="<?php echo $i;?>"><?php echo $i;?></option>
											<?php }?>
										</select>
										<span id="comeon" class="lastNum">余量有限</span>
									<?php } ?>
								</div>
							</div>
							<div class="areaitotal selectGoods">
								<div class="selectAreaitotal selectGoods">
									<div class="goodsAddArea selectGoods">
										<div class="danpinColorTitle"><p>已选：</p></div>
										<div class="goodsAdd">
											<?php foreach ($selAttr as $selk=>$selv){?>
												<p class="nowSel"><?php echo $selv;?></p>
												<p class="nowSel">，</p>
											<?php }?>
											<p class="nowHasGoods">    <?php if(empty($attrGoods)){ ?>现在无货<?php }else{ ?>现在有货<?php } ?></p>
										</div>
									</div>
								</div>
							</div>
							<div class="shoppingNews">
								    <?php if(!empty($attrGoods)){ ?>
									<a href="#" class="btnnowbuy"><span>立即购买</span></a>
									<a href="javascript:;" id="addShoppingCar"></a>
								<?php } ?>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="goodmsg">
				<div class="goodDig">
					<h3>产品属性：(点击属性可查看同类商品)</h3>
					<div class="dpShuXing">
					    <ul>
					    	<?php foreach ($attr as $k=>$v){?>
						        <li title="点击查看同类商品">
						        	<span><?php echo $v['taname'];?>：</span><a class="track" href="" target="_blank"><?php echo $v['gavalue'];?></a>
						        </li>
					        <?php }?>
					    </ul>
					</div>
				</div>
				<div class="goodDig">
					<h3>产品描述：</h3>
					<?php echo $goodsData['intro'];?>
				</div>
			</div>
			<!--评论start-->
			<!-- <div class="comment">
				<div class="commentL">
					<h2 class="hotTitle">热销产品</h2>
					<ul>
						<li>
							<a href="#"><img src="images/3246764-1j201409011618077408.jpg" /></a>
							<h3><a href="#">凡客80免烫衬衫</a></h3>
							<p><em>售价￥168</em></p>
						</li>
						<li>
							<a href="#"><img src="images/3246764-1j201409011618077408.jpg" /></a>
							<h3><a href="#">凡客80免烫衬衫</a></h3>
							<p><em>售价￥168</em></p>
						</li>
					</ul>
				</div>
				<div class="commentR">
					<h2 class="hotTitle">最新评论(共<span>290</span>条)</h2>
					<div class="addCom">
						<a href="#"><span>我要评论</span></a>
					</div>
					<div class="commentCon">
						<div class="newComment">
							
							<div class="commentTab">
								<div class="commentTabL">
									<div class="commentMsg">
										<p>性价比可以</p>
										<span class="commentTime">2015/9/7 19:27:19</span>
									</div>
									<div class="productCon">
										<span>颜色：黑色</span>
										<span>尺码：41</span>
										<span>身高：0cm</span>
										<span>体重：0.0kg</span>
										<span class="plsize">&lt;尺码偏小&gt;</span>
									</div>
								</div>
								<div class="commentTabR">
									<a href="#">1889*****97</a>
									<div class="userLevel" style="background-position: 0px 0px;"></div>
								</div>
							</div>
							
							<div class="commentTab">
								<div class="commentTabL">
									<div class="commentMsg">
										<p>鞋子不错穿着很舒服，物有所值。但比较不易清先干净。</p>
										<span class="commentTime">2015/9/7 18:45:40</span>
									</div>
									<div class="productCon">
										<span>颜色：藏蓝色</span>
										<span>尺码：41</span>
										<span>身高：0cm</span>
										<span>体重：0.0kg</span>
										<span class="plsize">&lt;尺码合适&gt;</span>
									</div>
								</div>
								<div class="commentTabR">
									<a href="#">*****936@qq.co*</a>
									<div class="userLevel" style="background-position: 0px 0px;"></div>
								</div>
							</div>
							
						</div>
					</div>
				</div>
				<div class="aq">
					<div class="aqCon">
						<div class="aqHead">
							<span class="zuixinpingluntitle">最新提问</span>
							<span class="zuixinpinglunnum">(共<strong>661</strong>条)</span>
							<span id="askBtn">
								<a href="#" class="danpinBtnStyle"><span>我要提问</span></a>
							</span>
						</div>
						<div class="aqList">
							
							<div class="aqTab">
								<div class="userQuseArea">
									<h4><span class="danpinQ">Q</span>thir***：</h4>
									<h5>2015/9/7 11:16:59<a href="#" class="myReply">我要回复<span>(0)</span></a></h5>
								</div>
								<div class="questionTitle">怎么凡客的帆布鞋现在都货物不全？等了很久了</div>
								<p class="adminAsk"><span class="danpinA">A</span>亲爱的客户您好，此款商品预计9月中旬会补货的，喜欢您可以后续关注。感谢您的支持！祝您购物愉快！\(^o^)/~</p>
							</div>
							
							<div class="aqTab">
								<div class="userQuseArea">
									<h4><span class="danpinQ">Q</span>thir***：</h4>
									<h5>2015/9/7 11:16:59<a href="#" class="myReply">我要回复<span>(0)</span></a></h5>
								</div>
								<div class="questionTitle">怎么凡客的帆布鞋现在都货物不全？等了很久了</div>
								<p class="adminAsk"><span class="danpinA">A</span>亲爱的客户您好，此款商品预计9月中旬会补货的，喜欢您可以后续关注。感谢您的支持！祝您购物愉快！\(^o^)/~</p>
							</div>
							
						</div>
					</div>
				</div>
			</div> -->
			<!--评论end-->
			<div class="foot">
				<ul>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li>
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
					<li class="footLine">
						<h2>关于凡客</h2>
						<p><a href="#">公司简介</a></p>
					</li>
				</ul>
			</div>
		</div>
		<div class="copyRight">
			<div class="copyRightTab"><p>Copyright 2007 - 2014 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11011502002400号 出版物经营许可证新出发京批字第直110138号</p></div>
		</div>
	</body>
</html>
